import { createRouter, createWebHistory } from 'vue-router'
import EnterPage from '@/views/EnterPage.vue'
import MainPage from '@/views/MainPage.vue'
import RegistPage from '@/views/RegistPage.vue'
import ContestsPage from '@/views/ContestsPage.vue'
import UserPage from '@/views/UserPage.vue'
import ProblemSetPage from '@/views/ProblemSetPage.vue'
import CreateProblemPage from '@/views/CreateProblemPage.vue'


const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/login',
      name: 'EnterPage',
      component:EnterPage
    },
    {
      path:'/',
      name:'MainPage',
      component:MainPage
    },
    {
      path:'/regist',
      name:'RegistPage',
      component:RegistPage
    },
    {
      path:'/user',
      name:'UserPage',
      component:UserPage
    },
    {
      path:'/contests',
      name:'ContestsPage',
      component:ContestsPage
    },
    {
      path:'/problemset',
      name:'ProblemSetPage',
      component:ProblemSetPage
    },
    {
      path:'/creaproblem',
      name:'CreateProblemPage',
      component:CreateProblemPage
    }
  ],
})

export default router
